<template>
  <view class="notice">
    <!-- 消息通知左侧区域 -->
    <view class="note-left">消息通知</view>
    <!-- 消息通知右侧区域 -->
    <view class="note-right">
      <view class="note-name">{{ notice.name }}</view>
      <view class="note-time">
        <text>{{ notice.time }}</text>
        <image src="../../static/images/icon-arrow.png" class="note-arrow"></image>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    name: "my-notice",
    data() {
      return {
        
      };
    },
    props: {
      // 消息通知信息
      notice: {
        type: Object,
        default: {}
      }
    }
  }
</script>

<style lang="scss">
  // 消息通知区域
  .notice {
    width: 690rpx;
    height: 72rpx;
    background-color: #fff;
    border-radius: 36rpx;
    box-shadow: 0px 8px 8px 0px rgba(202, 204, 205, 0.2);
    display: flex;
    font-size: 26rpx;
    align-items: center;

    // 消息通知左侧区域
    .note-left {
      width: 159rpx;
      padding-right: 18rpx;
      text-align: right;
      border-right: 3rpx solid #CECCCF;
      font-weight: 600;
    }

    // 消息通知右侧区域
    .note-right {
      width: calc(100% - 159rpx);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 28rpx 0 19rpx;

      .note-time {
        color: #868D93;

        .note-arrow {
          width: 11rpx;
          height: 22rpx;
          margin-left: 26rpx;
        }
      }
    }
  }
</style>
